anti-analysis/anti-debugging/debugger-evasion

hide thread from debugger

rule:
  meta:
    name: hide thread from debugger
    namespace: anti-analysis/anti-debugging/debugger-evasion
    authors:
      - michael.hunhoff@mandiant.com
      - jakub.jozwiak@mandiant.com
    scopes:
      static: function
      dynamic: call
    att&ck:
      - Defense Evasion::Debugger Evasion [T1622]
    mbc:
      - Anti-Behavioral Analysis::Debugger Evasion [B0002]
    references:
      - https://anti-debug.checkpoint.com/techniques/interactive.html#ntsetinformationthread
      - https://github.com/LordNoteworthy/al-khaser/blob/master/al-khaser/AntiDebug/NtSetInformationThread_ThreadHideFromDebugger.cpp
      - https://github.com/jaeyung1001/Anti-Debugging/blob/master/Code/NtSetInformationThread.cpp
    examples:
      - 26beba7352a32b803aa19e0782011a383a1df19549910e7b2f2f244e49678524:0x10001670
  features:
    - and:
      - or:
        - api: NtSetInformationThread
        - api: ZwSetInformationThread
        - basic block:
          - and:
            - or:
              - string: "NtSetInformationThread"
              - string: "ZwSetInformationThread"
            - match: link function at runtime on Windows
      - number: 0x11 = ThreadHideFromDebugger

last edited: 2025-02-04 08:32:24